package com.tsd.jxc.goods.dao;

import java.util.List;
import java.util.Map;

import com.tsd.core.vo.PageBean;
import org.apache.ibatis.annotations.Param;

import com.tsd.jxc.goods.entity.JxcGoodsAttrGroup;
import com.tsd.jxc.goods.entity.JxcGoodsAttrGroupExt;
/**
* 描述：JxcGoodsAttrGroupMapper
*
* @author david
* @date 2024/05/08 10:06:10
*/
public interface JxcGoodsAttrGroupMapper {

	JxcGoodsAttrGroup selectByPrimaryKey(Long id);

    JxcGoodsAttrGroupExt selectBySid(String sid);

	int deleteByPrimaryKey(Long id);

    int insert(JxcGoodsAttrGroup record);

    int insertSelective(JxcGoodsAttrGroup record);

    int insertList(List<JxcGoodsAttrGroup> list);

    int updateByPrimaryKey(JxcGoodsAttrGroup record);

    int updateByPrimaryKeySelective(JxcGoodsAttrGroup record);

    List<JxcGoodsAttrGroupExt> selectByEntity(JxcGoodsAttrGroup record);

    List<JxcGoodsAttrGroupExt> selectByPage(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcGoodsAttrGroupExt> selectCount1Page(@Param("params") Map<String, Object> params, @Param("page") PageBean page);

    List<JxcGoodsAttrGroupExt> selectByParams(@Param("params") Map<String, Object> params);
    //批量插入，mysql默认接受sql的大小是1048576(1M)，此方式若数据量超过1M会报如下异常：（可通过调整MySQL安装目录下的my.ini文件中[mysqld]段的＂max_allowed_packet = 1M＂）
    //void insertList(List<JxcGoodsAttrGroup> list);
}
